package com.auemall.service.impl;

import com.auemall.dao.DeliverinfoMapper;
import com.auemall.po.Deliverinfo;
import com.auemall.service.DeliverinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeliverinfoImpl implements DeliverinfoService{

	@Autowired
	private DeliverinfoMapper deliverinfoMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return deliverinfoMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Deliverinfo record) {
		// TODO Auto-generated method stub
		return deliverinfoMapper.insert(record);
	}

	@Override
	public int insertSelective(Deliverinfo record) {
		// TODO Auto-generated method stub
		return deliverinfoMapper.insertSelective(record);
	}

	@Override
	public Deliverinfo selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return deliverinfoMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Deliverinfo record) {
		// TODO Auto-generated method stub
		return deliverinfoMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Deliverinfo record) {
		// TODO Auto-generated method stub
		return deliverinfoMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Deliverinfo> findAll(Integer buyid) {
		return deliverinfoMapper.findAll(buyid);
	}

}
